home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // Supplier.wfm - Mugs Sample Application
- //
- // Data entry from for Supplier table.
- //
- // Dependencies: MUGS.CFM
- // MUGS.CC
- // SUPPLIER.DMD
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.10 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- SET TALK OFF
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/23/97
- //
- parameter bModal
- local f
- f = new supplierForm()
- if (bModal)
- f.mdi = false // ensure not MDI
- f.readModal()
- else
- f.open()
- endif
-
- class supplierForm of MUGSDATACFORM from "MUGS.CFM"
- set procedure to MUGS.CC additive
- with (this)
- open = class::FORM_OPEN
- height = 16
- left = 1
- top = 1
- width = 70
- text = "Supplier - Data Entry"
- endwith
-
-
- this.DATAMODREF1 = new DATAMODREF()
- this.DATAMODREF1.parent = this
- with (this.DATAMODREF1)
- filename = "SUPPLIER.DMD"
- dataModClass = "supplierDataModule"
- share = 0
- active = true
- left = -0.1667
- top = -0.0526
- endwith
-
-
- with (this.BOOK1)
- height = 14
- top = 2.5
- width = 70
- metric = 0
- endwith
-
-
- with (this.BOOK1.GRIDROWS)
-
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset
- metric = 0
- endwith
-
-
- this.BOOK1.LABELCOMPANY = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELCOMPANY)
- height = 1
- left = 2
- top = 3
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Company:"
- endwith
-
-
- this.BOOK1.LABELCONTACT = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELCONTACT)
- height = 1
- left = 2
- top = 4.5
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Contact:"
- endwith
-
-
- this.BOOK1.LABELPHONE = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELPHONE)
- height = 1
- left = 38
- top = 4.5
- width = 6.5
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- alignHorizontal = 2
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Phone:"
- endwith
-
-
- this.BOOK1.LABELFAX = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELFAX)
- height = 1
- left = 38
- top = 5.5
- width = 6.5
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- alignHorizontal = 2
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Fax:"
- endwith
-
-
- this.BOOK1.LABELEMAIL = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELEMAIL)
- height = 1
- left = 2
- top = 5.5
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "E-Mail:"
- endwith
-
-
- this.BOOK1.LABELADDRESS = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELADDRESS)
- height = 1
- left = 2
- top = 7
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Address:"
- endwith
-
-
- this.BOOK1.LABELCITY = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELCITY)
- height = 1
- left = 2
- top = 9
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "City:"
- endwith
-
-
- this.BOOK1.LABELSTATE = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELSTATE)
- height = 1
- left = 37
- top = 9
- width = 6.5
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- alignHorizontal = 2
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "State:"
- endwith
-
-
- this.BOOK1.LABELCOUNTRY = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELCOUNTRY)
- height = 1.1
- left = 2
- top = 10
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Country:"
- endwith
-
-
- this.BOOK1.LABELPOSTAL = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELPOSTAL)
- height = 1.1
- left = 28.5
- top = 10
- width = 15
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- alignHorizontal = 2
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Zip/Postal Code:"
- endwith
-
-
- this.BOOK1.LABELID = new TEXT(this.BOOK1)
- with (this.BOOK1.LABELID)
- height = 1
- left = 2
- top = 2
- width = 9.75
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "ID:"
- endwith
-
-
- this.BOOK1.ENTRYID = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYID)
- enabled = false
- height = 1
- left = 11.5
- top = 2
- width = 8
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Supplier ID"]
- picture = "9999999"
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYPHONE = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYPHONE)
- height = 1
- left = 45
- top = 4.5
- width = 15
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Phone"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYFAX = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYFAX)
- height = 1
- left = 45
- top = 5.5
- width = 15
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Fax"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.COMBOSTATE = new COMBOSTATE(this.BOOK1)
- with (this.BOOK1.COMBOSTATE)
- height = 1.1
- left = 45
- top = 9
- width = 6.5
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["State ID"]
- fontName = "MS Sans Serif"
- fontSize = 8
- endwith
-
-
- this.BOOK1.COMBOCOUNTRY = new COMBOBOX(this.BOOK1)
- with (this.BOOK1.COMBOCOUNTRY)
- height = 1.1
- left = 11.5
- top = 10
- width = 16
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Country ID"]
- fontName = "MS Sans Serif"
- fontSize = 8
- style = 1
- endwith
-
-
- this.BOOK1.ENTRYEMAIL = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYEMAIL)
- height = 1
- left = 11.5
- top = 5.5
- width = 25
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["EMail"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYCOMPANY = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYCOMPANY)
- height = 1
- left = 11.5
- top = 3
- width = 28
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Company"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYCITY = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYCITY)
- height = 1
- left = 11.5
- top = 9
- width = 23
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["City"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYSTREET1 = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYSTREET1)
- height = 1
- left = 11.5
- top = 7
- width = 38
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Street1"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYSTREET2 = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYSTREET2)
- height = 1
- left = 11.5
- top = 8
- width = 38
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Street2"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYCONTACT = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYCONTACT)
- height = 1
- left = 11.5
- top = 4.5
- width = 25
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Contact"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- borderStyle = 7
- endwith
-
-
- this.BOOK1.ENTRYPOSTAL = new ENTRYFIELD(this.BOOK1)
- with (this.BOOK1.ENTRYPOSTAL)
- height = 1.1
- left = 45
- top = 10
- width = 11
- metric = 0
- dataLink = parent.parent.DATAMODREF1.ref.supplier1.rowset.fields["Postal"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.BOOK1.BUTTONOK = new PUSHBUTTON(this.BOOK1)
- with (this.BOOK1.BUTTONOK)
- onClick = class::BUTTONOK_ONCLICK
- visible = false
- height = 1.2
- left = 61
- top = 2
- width = 11
- text = "OK"
- metric = 0
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- colorNormal = "BtnText/BtnFace"
- value = false
- endwith
-
-
- this.BOOK1.BUTTONCANCEL = new PUSHBUTTON(this.BOOK1)
- with (this.BOOK1.BUTTONCANCEL)
- onClick = class::BUTTONCANCEL_ONCLICK
- visible = false
- height = 1.2
- left = 61
- top = 3.5
- width = 11
- text = "Cancel"
- metric = 0
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- colorNormal = "BtnText/BtnFace"
- value = false
- endwith
-
-
- this.rowset = this.DATAMODREF1.ref.supplier1.rowset
-
- // {Linked Method} form.open
- function form_open
- this.title.text := "<h2>Supplier</h2>"
- return ( SUPER::FORM_OPEN() )
-
- // {Linked Method} form.book1.buttonok.onClick
- function BUTTONOK_onClick
- this.form.dataModRef1.ref.supplier1.rowset.save()
- return ( this.form.close() )
-
- // {Linked Method} form.book1.buttoncancel.onClick
- function BUTTONCANCEL_onClick
- this.form.dataModRef1.ref.supplier1.rowset.abandon()
- return ( this.form.close() )
- endclass
-